package com.ruoyi.printer.controller.mqtt;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.printer.domain.PrinterShop;
import com.ruoyi.printer.service.IPrinterShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yanyi
 * @date 2023/8/10 11:09
 */
@RestController
@RequestMapping("/mqtt/test")
public class PrinterController extends BaseController {
    @Autowired
    IPrinterShopService printerShopService;
    @PostMapping("/shop")
    public AjaxResult add(@RequestBody PrinterShop printerShop)
    {
        return toAjax(printerShopService.insertPrinterShop(printerShop));
    }
}
